package org.pearl.springboot.minio.pojo.query;

import lombok.Data;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

import java.util.UUID;

/**
 * Created by TD on 2021/8/26
 */
@Data
@Component
@Scope(value = "thread", proxyMode = ScopedProxyMode.TARGET_CLASS)
// @Scope(value= ConfigurableBeanFactory.SCOPE_PROTOTYPE,proxyMode = ScopedProxyMode.TARGET_CLASS)
public class User {
    String username;
    String password;
    Integer age;
    String name;
    String userId;
    String permissionCode;

    public void test() {
        System.out.println("test");
    }

    public User() {
        userId = UUID.randomUUID().toString();
    }
}
